package com.dq.controller.op.opboss.finance;

import com.dq.exception.customException.AdminException;
import com.dq.controller.in.RoyaltyRecordQuery;
import com.dq.vo.Vo;
import com.dq.service.AllService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author luchangtong
 * @Date 2019/12/23 10:40
 */
@RestController
@RequestMapping("/sys/boss/royaltyRecord")
@Api(description = "业绩提成管理")
public class RoyaltyRecordController extends AllService {

    @PostMapping("list")
    @ApiOperation("业绩提成")
    public Vo list(@RequestBody RoyaltyRecordQuery query) throws AdminException{
        return bossRoyaltyRecordService.list(query);
    }
}
